@import "../base/base"; // 引入变量
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

// 解决chromeinput背景为浅黄的问题
input:-webkit-autofill {
  -webkit-animation: autofill-fix 1s infinite;
}

@-webkit-keyframes autofill-fix {
  from {
    background-color: $cr-f
  }
  to {
    background-color: $cr-f
  }
}

html, body, #app, #login, .login-content {
  @include overflow;
  @include higt100;
}

.login-content {
  @include wid100;
  background: url("/static/img/login/bg.png") no-repeat center;
  background-size: 100% 100%;
  @include rel;
}

.login-head {
  height: 80px;
  display: flex;
  align-items: center;
  color: $cr-0;
  font-size: $sz20;
  margin-left: 50px;
  .login-title {
    width: 50px;
    height: 50px;
  }
  .line {
    height: 37px;
    margin: 0 5px 0 0;
  }
  p {
    height: 20px;
    font-size: $sz20;
  }
  span {
    @include line-height(12);
    font-size: $sz12;
  }
}

.login-info {
  @include wid100;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 120px;
  .login-intro {
    @include mgT(-50px);
    @include mgR(260px);
    width: 500px;
  }
}

.login-box {
  @include pdA(30px);
  width: 360px;
  height: 360px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  .user-login {
    @include mgB(30px);
    font-size: $sz24;
    color: $cr-f;
  }
  .login-form {
    @include tc;
    .icon-box {
      @include rel;
      .icon {
        @include block;
        height: 24px;
        width: 31px;
        border-right: 1px solid $cr-c;
        // padding-right: 10px;
        @include pdR(10px);
        @include abs;
        left: 10px;
        top: 10px;
        img {
          @include pdT(3px);
        }
      }
    }
    input {
      width: 302px;
      height: 40px;
      background-color: $cr-f;
      @include pdL(50px);
      @include border-radius(10px);
      border: 1px solid #CED6DE;
      @include overflow;
    }
    ::-webkit-input-placeholder { /* WebKit browsers */
      color: #A0A0A0;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
      color: #A0A0A0;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
      color: #A0A0A0;
    }
    :-ms-input-placeholder { /* Internet Explorer 10+ */
      color: #A0A0A0;
    }
    input:focus {
      outline: none;
      border: 1px solid $brand-primary;
    }
    .msg-box {
      @include rel;
      margin-bottom: 30px;
      .icon-box {
        @include rel;
        @include inline;
        width: auto;
      }
      .login-icon {
        @include border-radius(1px 0px 0px 1px);
        @include abs;
        top: 1px;
        height: 38px;
        width: 40px;
        img {
          @include mgT(10px);
        }
      }
      .login-msg {
        @include abs;
        left: 30px;
        top: 48px;
        color: red;
        display: flex;
        align-items: center;
        @include vc;
        font-size: $sz12;
        img {
          @include mgR(5px);
          width: 17px;
          height: 17px;
        }
      }
    }
  }
  .login-btn {
    @include border-radius(10px);
    width: 300px;
    height: 40px;
    background: $brand-primary;
    font-size: $ft-sz;
    @include line-height(40);
    color: #fff;
    margin: 0 auto;
    cursor: pointer;
  }
  .login-btn:active {
    background: $brand-primary;
    border: 2px solid $brand-primary;
  }
  .login-btn.login {
    background: $brand-primary;
    border: 2px solid $brand-primary;
    box-sizing: border-box;
  }
}

.login-foot {
  @include mgL(-100px);
  @include fix;
  bottom: 30px;
  left: 50%;
  color: #C5C3C5;
  font-size: 1$ft-sz;
}
